<div class="header">
	<div class="nav">
	  <a class="backlogo" href="JavaScript:;"><img src="/assets/images/_logo.png" style="width: 158px; height: 40px;"></a>
		<div class="top-panel">
	     	<ul class="top-menu">
				<li ng-repeat="(i,item) in Menu track by $index" ng-if="item.state != 'perscenter'"><a href="javascript:void(0)" ng-click="goView(item.state,item.path)" ng-class="{active:isActive(item.state)}">{{item.name}}</a></li>
	     	</ul>
	     </div>
       <div class="btn-group navuser">
	      <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-expanded="false">{{roles.realName}}<span class="caret"></span></button>
	      <div class="dropdown-menu" role="menu">
			<div class="roles">
				<div class="avatar">
					<img ng-src="{{roles.photoUrl}}" />
				</div>
				<div class="roles-text">
					<span class="text">姓名：{{roles.realName}}</span>
					<span class="text">用户名：{{roles.username}}</span>
			  	    <span class="text">权限：{{roles.roleName}} </span>
				    <span class="text" ng-if="roles.is_admin == 1">职位：{{roles.positionName}}</span>
				</div>
				<div class="roles-text">
					<button class="btn btn-radius" ng-click="goView('perscenter','/perscenter/persinfo', {state:1,rid:roles.id})">个人</button>
					<button class="btn btn-radius" ng-click="goView('perscenter','/perscenter/persinfo', {state:2,rid:roles.id})">密码</button>
					<a href="http://www.houbu.vip" target="_blank"><button class="btn btn-radius">帮助</button></a>
					<button class="btn btn-radius" ng-click="exitLogin();">退出</button>
				</div>
			</div>
	      </div>
	    </div>
	</div>
</div>

